import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/duzikai_api_mgr_public_data_admin_user",
    method: "post",
    data,
  });
}

export function userList(data) {
  return request({
    url: "/duzikai_api_mgr_public_user_info",
    method: "post",
    data,
  });
}

export function consumeList(data) {
  return request({
    url: "/duzikai_api_mgr_consume_record",
    method: "post",
    data,
  });
}

export function getInfo(token) {
  return request({
    url: "/vue-element-admin/user/info",
    method: "get",
    params: { token },
  });
}

export function logout() {
  return request({
    url: "/vue-element-admin/user/logout",
    method: "post",
  });
}

export function clearMemory(params) {
  return request({
    url: "/duzikai_api_customer_public_global_mgr",
    method: "post",
  });
}
